#include<stdio.h>
int main()
{
	int i,sum=0,n;
	scanf("%d",&n);
	sum=(1+n)*n/2;
	printf("%d\n",sum);
	return 0;
 } 
void AddTime1(long n) 
{
clock_t t;
long sum;
t = clock();
sum = add1(n);
t = clock() - t;
printf("方法：\n");
printf(" 结果：1~%d之和：%ld\n",n,sum);
printf("用时:%lf秒\n",((float)t)/CLOCKS_PER_SEC);
}